home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
tpfast40.zip
/
T_BIT.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-11-14
|
547b
|
22 lines
uses crt,tpfast;
var wnum :word;
ch :char;
begin
textattr := 7;
clrscr;
repeat
gotoxy(1,1);
writeln('Enter a numeric number or 0 to quit .. ?');
gotoxy(43,1);
readln(wnum);
writeln;
writeln('Word entered ... ',wnum);
writeln('Word rotated left 1 ... ',rotatewordleft(wnum,1));
writeln('Word rotated right 1 bit ... ',rotatewordright(wnum,1));
writeln('Word converted to hex ... ',wordtohex(wnum));
until wnum = 0;
end.